import request, { http_share } from '@/utils/request'

export function referenceIndex(data) {
  return request({
    url: 'reference/index',
    method: 'post',
    data,
  })
}
export function referenceBonusMatches(data) {
  return request({
    loading: true,
    url: 'reference/matches',
    method: 'post',
    data,
  })
}

export function articleList(data, loading) {
  return request({
    loading,
    url: 'Index/pageArtLists',
    method: 'post',
    data,
  })
}

export function articleDetail(data) {
  return request({
    loading: true,
    url: 'Index/artDetail',
    method: 'post',
    data,
  })
}

export function dataList(data) {
  return request({
    loading: true,
    url: 'reference/dateList',
    method: 'post',
    data,
  })
}

export function matchList(data) {
  return request({
    loading: false,
    url: 'reference/matchList',
    method: 'post',
    data,
  })
}

export function matchDetail(data) {
  return http_share({
    loading: true,
    url: 'reference/matchDetail',
    method: 'post',
    data,
  })
}

export function logRecord(data) {
  return request({
    loading: false,
    url: 'log/record',
    method: 'post',
    data,
  })
}

export function memberGptToken(data) {
  return request({
    url: 'reference/token',
    method: 'post',
    data,
  })
}
